package com.qcsec.domain.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.qcsec.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import static com.qcsec.common.consts.CommonCst.KEY_GEN;

@ApiModel
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@Table(value = "sys_config")
public class SysConfig extends BaseEntity {
    @Id(keyType = KeyType.Generator,value= KEY_GEN)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String name;
}
